package com.heny.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.heny.demo.handler.GeometryTypeHandler;
import org.locationtech.jts.geom.Point;

/**
 * @author :Yozuru
 * @since :2024/9/14 17:19
 */
@TableName("turn_point")
public class TurnPoint {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(typeHandler = GeometryTypeHandler.class)
    private Point coordinate;
    private String index;

    public Point getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(Point coordinate) {
        this.coordinate = coordinate;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public TurnPoint(Point coordinate, String index) {
        this.id = id;
        this.coordinate = coordinate;
        this.index = index;
    }
}
